package com.qishao.oss_service;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableDiscoveryClient //开启服务发现
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) //由于该服务无需连接数据库，将数据库的自动配置给关掉，否则会报错
@ComponentScan(basePackages = "com.qishao")
public class OssServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(OssServiceApplication.class, args);
    }

}
